package cn.wolfcode.luowowo.service;


import cn.wolfcode.luowowo.domain.StrategyCatalog;
import cn.wolfcode.luowowo.query.StrategyCatalogQuery;
import cn.wolfcode.luowowo.vo.CatalogVO;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCatalogService {
    StrategyCatalog get(String id);
    List<StrategyCatalog> list();

    void save(StrategyCatalog strategyCatalog);
    void update(StrategyCatalog strategyCatalog);
    void delete(String id);

    /**
     * 查询
     * @param qo
     * @return
     */
    Page<StrategyCatalog> query(StrategyCatalogQuery qo);

    /**
     * 保存和更新
     * @param strategyCatalog
     */
    void saveOrUpdate(StrategyCatalog strategyCatalog);
    //遍历
    List<CatalogVO> groupList();
}
